<!DOCTYPE html">
<html>
    <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>个人中心</title>
        <link rel="stylesheet" href="{{asset('media2/css/msaved_resource')}}">
        <link rel="shortcut icon" href="#" type="image/x-icon"></head>
    <body>
		 <!-----------head start ----- -->
		 <link rel="stylesheet" href="{{asset('media2/css/mtop.logo.foot.myicon.min.css')}}">
		 <!-- 是否有导航，首页跟公共的导航有区别 -->
		 <link rel="stylesheet" href="{{asset('media2/css/mrow-nav.min.css')}}">
         <!-- 是否有导航 -->              
<!-- ----------------===============     top     ===============--------------- -->
	

	@inclue('home.cart.top')
                        
<script type="text/javascript">
var _lenovo_is_need_yfxjs=1;//0-不需要易分析js  1-需要易分析js
if (_lenovo_is_need_yfxjs && _lenovo_is_need_yfxjs==1) {
	var _trackDataType = 'web';
	var _Schannel_website_id = 'lenovoshop_pc';
}
</script>
<!--统计代码-->

<!--易分析-->
<script type="text/javascript">
passport.isLogin();
function loadScript(url, callback) {
    var script = document.createElement("script"),callback = callback || function(){};
    script.type = "text/javascript";
    if (script.readyState) { //IE 
        script.onreadystatechange = function () {
            if (script.readyState == "loaded" ||
            script.readyState == "complete") {
                script.onreadystatechange = null;
                callback();
            }
        };
    } else { //Others: Firefox, Safari, Chrome, and Opera 
        script.onload = function () {
            callback();
        };
    }
    script.src = url;
    document.body.appendChild(script);
}
if(_lenovo_is_need_yfxjs && _lenovo_is_need_yfxjs==1) {
	/*------------------20150821监控代码------------------*/
//var _trackDataType = 'web'; //标记数据来源，参数是web和wap，可以为空，默认是web
//var _Schannel_website_id = '';//分站编号，不存在可不写此变量或者留空
var _Schannel_webshop_id = '';//商铺编号，不存在可不写此变量或者留空
var _trackData = _trackData || [];//必须为全局变量，假如之前并没有声明，请加此行代码；

function _lenovo_yfx_loadScript(url, callback) {
    var script = document.createElement("script"),callback = callback || function(){};
    script.type = "text/javascript";
    if (script.readyState) { //IE 
        script.onreadystatechange = function () {
            if (script.readyState == "loaded" ||
            script.readyState == "complete") {
                script.onreadystatechange = null;
                callback();
            }
        };
    } else { //Others: Firefox, Safari, Chrome, and Opera 
        script.onload = function () {
            callback();
        };
    }
    script.src = url;
    document.body.appendChild(script);
}

var laurl = '//m1.lefile.cn/la/la.min.js?v20160602';

$(function () {
    _lenovo_yfx_loadScript(laurl, function () {
        if (typeof (la_callback) != 'undefined' && la_callback) {
            //la_callback();
        }
    });
});
}
</script>

  
<script type="text/javascript">
      var headcss="";
       headcss +="<link rel=\"shortcut icon\" href=\"/framework/common/images/favicon.ico\" type=\"image/x-icon\"/>"; 
	   $("head").append(headcss);
	 </script>
<div class="user_location">
    <a href="/home/index" title="">首页</a>&gt;<a href="/home/personal/personal">会员中心</a>
	<p style="display: none;padding-right: 15px;float: right;" id="complet_mess">
    <a href="#" style="color:red;" id="ledounum">完善个人信息，送50乐豆!</a></p>
&gt;<span>个人信息</span></div>  
<!-----------head end ----- -->

<!-- location end -->
<div class="user_main clearfix">
	<!-- menu -->
    <div class="user_leftbar">
	    @include('home.cart.left')
      </div>
    
   
    <!-- 头像处理 -->
    <div class="uphead_right" style="display: block;">
        <div class="uphead_box">
            <div class="uphead_title">
                <p>修改头像</p>
            </div>
            <form id="coordForm" method="post">
	        	<!-- 选择图片 -->
		        <input type="hidden" id="dataX" name="dataX" value="0" placeholder="x">
	            <input type="hidden" id="dataY" name="dataY" value="0" placeholder="y">
	            <input type="hidden" id="dataWidth" name="dataWidth" value="-1" placeholder="width">
	            <input type="hidden" id="dataHeight" name="dataHeight" value="-1" placeholder="height">
	            <input type="hidden" id="sts" name="sts" value="e40e7004-4c8a-4963-8564-31271a8337d8">
	            <input type="hidden" id="imgurl" name="imgurl">
	        </form>
            <div class="uphead_hd clearfix">
                <div class="uphead_img">
                	<div class="uphead_lt">
                		<form id="imgForm" method="post" enctype="multipart/form-data">
                			<a href="#" class="a-upload"><input type="file" id="inputImage" name="file" accept="image/*"><em></em>上传头像</a>
                			<input type="hidden" name="sts" value="e40e7004-4c8a-4963-8564-31271a8337d8">
                		</form>
                		<!-- <p><em></em>上传头像</p> -->
                    	<h2>请选择一张您电脑中的图片，支持JPG、PNG图片类型，图片大小不能大于4M</h2>
                	</div>
                	<div class="img-container">
			          <img id="image" src="" alt="Picture">
			        </div>
                </div>
                <div class="uphead_c"></div>
                <div class="uphead_rt">
                	<div>
                		<p><strong>效果预览</strong></p>
                		<div style="width:260px; font-size: 13px;color: #B0B0B0;">你上传的图片会自动生成2种尺寸，请注意小尺寸的头像是否清晰</div>
                	</div>
                    <div style="width: 100%;height: 100%;">
			          	<div class="img-preview preview-md">
			          		<div style="margin-top:40%">没有预览</div>
			          	</div>
			          	<p style="font-size:9px;color:#B0B0B0;">100×100</p>
			          	<div class="img-preview preview-sm">
			          		<div style="margin-top:40%">没有预览</div>
			          	</div>
			          	<p style="font-size:9px;color:#B0B0B0;">50×50</p>
                    </div>
                </div>
				
                <div class="uphead_back" onclick="toggleHeadSet();" onmouseover="this.style.background=&#39;#f7f7f7&#39;" onmouseout="this.style.background=&#39;#fff&#39;" title="返回" style="background: rgb(255, 255, 255);">
                	<div><a href="information.html"><img src="{{asset('media2/images/head_back.png')}}"></a></div>
					
                </div>
				<div class="uphead_btn">
					<p id="uploadImg" onmouseover="this.style.background=&#39;#FF3030&#39;" onmouseout="this.style.background=&#39;#c9c9c9&#39;">保存</p>
					<p id="cancelImg"  onmouseover="this.style.background=&#39;#FF3030&#39;" onmouseout="this.style.background=&#39;#c9c9c9&#39;">取消</p>
				</div>
            </div>
           
           
            
        </div>
        
    </div>
</div>

<script src="{{asset('media2/css/msaved_resource(2)')}}"></script>

<script src="{{asset('media2/js/laydate.js')}}"></script>

<script type="text/javascript">
	var mcode="611f8c79c4dc";
	
	//初始化省市区
    initaddr("安徽省","宿州市","萧县");
	
	var ages = document.getElementById("ages");
	if(ages){
		var a = "";
		a = parseInt(a);
		ages.options[a].selected = true;
	}
	
	
</script>
<!-- scjs碎片 -->
<!-- foot start -->
<!-- ----------------===============    foot     ===============--------------- -->
<!-- footer -->
<style type="text/css">.ns_p4 .ns_footer_line {
	width: 1200px;
	width: 1200px;
	box-sizing: border-box;
	margin: 0 auto;
}</style>
<div id="foot_div">
@include('home.cart.down')
<!--页脚-->
</div>
 
<script type="text/javascript">
passport.logoutRedirect = '#';
//leftbar
$(function(){
	 $('.user_list h3').click(function(){
	        var userIcon=$(this).find('i');
	        var userUl=$(this).siblings('ul');
	        if(userIcon.hasClass('user_up')){
	            userIcon.removeClass('user_up').addClass('user_down');
	            userUl.slideUp();
	        }else{
	            userIcon.removeClass('user_down').addClass('user_up');
	            userUl.slideDown();
	        }
	    });
});

$(function(){
    //初始化时默认选中菜单
	$("#user_leftbar li a").each(function(){
		if($(this).attr("mcode")==mcode){
		    $(".user_location").append("&gt;<span>"+$(this).html()+"</span>");
			$(this).parent().addClass("red_bg");
		}
	 });
	 //ul 也可以点击
	 $("#user_leftbar ul").each(function(){
		$(this).click(function(){
		    if($(this).find("a").attr("_target")){
			   window.open($(this).find("a").attr("_href"));
			}else{
			   window.location.href= $(this).find("a").attr("href");
			}
		});
	 });
	 
	 //取乐豆相关活动
	 $.ajax({  
        type : "get",  
        async:false,  
        url : "#",  
        dataType : "jsonp",//数据类型为jsonp  
        jsonpCallback:"callback", 
        success : function(data){  
            if(data.ledounum>0){
			   $("#complet_mess").css("display","inline-block");
			   $("#ledounum").html("首次完善个人信息，送"+data.ledounum+"乐豆!");
			}else{
			   $("#complet_mess").css("display","none"); 
			}
        },  
        error:function(){   
        }  
    });   
	 
});
</script>

		 <!-- foot end -->

<script type="text/javascript" src="{{asset('media2/js/la.min.js')}}"></script><div id="ppMask" class="ppMask"></div></body></html>